package com.prs.crm.domain.oa;

import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;

/**
 * OA信息发布公司相册
 * @author zhoupeng 2012-4-5
 *
 */
@Entity
@Table(name="oa_companyPicture")
public class CompanyPicture extends BaseEntity{
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String name;
	private String remark;
	private String lookPerson;  //可见人员
	private String writePerson;  //可写人员
	private Integer num;  //图片数
	private String coverPicture;  //封面图片
	private Integer seeState;
	private Integer upState;
	public Integer getSeeState() {
		return seeState;
	}
	public void setSeeState(Integer seeState) {
		this.seeState = seeState;
	}
	public Integer getUpState() {
		return upState;
	}
	public void setUpState(Integer upState) {
		this.upState = upState;
	}
	@OneToMany(fetch=FetchType.LAZY,mappedBy="picture")
	private List<Picture> pictures;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getLookPerson() {
		return lookPerson;
	}
	public void setLookPerson(String lookPerson) {
		this.lookPerson = lookPerson;
	}
	public String getWritePerson() {
		return writePerson;
	}
	public void setWritePerson(String writePerson) {
		this.writePerson = writePerson;
	}
	
	public String getCoverPicture() {
		return coverPicture;
	}
	public void setCoverPicture(String coverPicture) {
		this.coverPicture = coverPicture;
	}
	public List<Picture> getPictures() {
		return pictures;
	}
	public void setPictures(List<Picture> pictures) {
		this.pictures = pictures;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	
}
